package net.sansi.v3correctserver.controller;

import io.swagger.annotations.ApiOperation;
import net.sansi.v3correctserver.dto.CmmDto;
import net.sansi.v3correctserver.dto.R;
import net.sansi.v3correctserver.service.correct.LineCorrectService;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * Created by Fang
 * create time : 2024/11/5
 * IDE : IntelliJ IDEA
 * <p>
 * 亮暗线矫正相关接口
 */

@RestController
@ApiOperation("亮暗线矫正")
@RequestMapping("/line-correct")
@Validated
public class LineCorrectController {

    @Resource
    private LineCorrectService lineCorrectService;


    /**
     * 矩形屏 所有区域进行亮暗线矫正
     *
     * @return taskId
     */
    @ApiOperation("矩形屏 所有区域进行亮暗线矫正")
    @PostMapping("/rect/all")
    public R<String> rectAll() {
        // TODO 矩形屏 针对所有区域进行亮暗线矫正
        return null;
    }

    /**
     * 矩形屏 对某几个区域进行亮暗线矫正
     *
     * @param ids 区域id
     * @return 是否成功
     */
    @ApiOperation("矩形屏 对某几个区域进行亮暗线矫正")
    @PostMapping("/rect/by-area-ids")
    public R<String> rectAreaIds(@RequestBody @Validated CmmDto.Ids<Integer> ids) {
        // TODO 矩形屏 针对指定区域进行亮暗线矫正
        return null;
    }

}
